package com.sumainfor.wx.system.gmio.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.common.utlis.Pager;
import com.sumainfor.wx.system.gmio.service.LiveCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author Meng
 * @ClassName LiveCardController
 * @date 2019/8/13 15:14
 * @description: TODO 租赁备案
 */
@RestController
@RequestMapping("liveCard")
public class LiveCardController {

    @Autowired
    private LiveCardService liveCardService;

    /**
     * @Description //TODO 租赁备案查询居住证列表
     * @return com.sumainfor.common.util.JsonResult
     * @Param [params, pager]
     * @Date 2019/8/13 15:23
     **/
    @GetMapping("getLiveCardList")
    public JsonResult getLiveCardList(@RequestParam Map<String,Object> params, Pager pager) {
        return liveCardService.getLiveCardList(params, pager);
    }

    /**
     * @Description //TODO 租赁备案确认办理
     * @return com.sumainfor.common.util.JsonResult
     * @Param [params]
     * @Date 2019/8/13 15:27
     **/
    @PostMapping("updateHoLivecard")
    public JsonResult updateHoLivecard(@RequestBody Map<String, Object> params) {

        return liveCardService.updateHoLivecard(params);
    }
}
